﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="AddRating.ascx.cs" Inherits="UserControls_AddRating" %>
<style type="text/css">
    .auto-style1 {
    }
    .auto-style2 {
        height: 27px;
    }
</style>
<table style="margin: 10px; border: thin solid #99CCFF;">
  <tr>
    <td valign="top" colspan="2" class="auto-style2">
<h2 id="customerReviewsHeader" class="orange" style="border-style: none; border-color: inherit; border-width: 0px; color: rgb(228, 121, 17); font-size: large; margin: 0px; padding: 0px; font-weight: bold; font-style: normal; font-family: Arial, Verdana, 'Helvetica Neue', Helvetica, sans-serif; line-height: 23px; font-variant: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255);">Create your Review</h2></td>
  </tr>
  <tr>
    <td valign="top" class="auto-style1" style="text-align: right"><b style="color: rgb(0, 0, 0); font-family: verdana, arial, helvetica, sans-serif; font-size: small; font-style: normal; font-variant: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255);">Set your pen name:</b></td>
    <td>
      <asp:TextBox cssClass="AdminPageText" ID="newName" Runat="server" Width="100px" />    
        <asp:RequiredFieldValidator ID="ValidUser" runat="server" ErrorMessage="Pen name is required" ControlToValidate="newName" Display="Dynamic" Font-Bold="True" Font-Names="Verdana" Font-Size="Small" ></asp:RequiredFieldValidator>
        </td>
  </tr>
  <tr>
    <td valign="top" class="auto-style1" style="text-align: right"><b style="color: rgb(0, 0, 0); font-family: verdana, arial, helvetica, sans-serif; font-size: small; font-style: normal; font-variant: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255);">Rating:</b></td>
    <td>
        <asp:DropDownList ID="newRate" runat="server" DataSourceID="SqlDataRating" DataTextField="Rating" DataValueField="Rating">
        </asp:DropDownList>
        <asp:SqlDataSource ID="SqlDataRating" runat="server" ConnectionString="<%$ ConnectionStrings:BalloonShopConnection %>" SelectCommand="SELECT [Rating] FROM [RatVal]"></asp:SqlDataSource>
        <asp:RequiredFieldValidator ID="ValidRating" runat="server" ErrorMessage="Rating is required" ControlToValidate="newRate" Display="Dynamic" Font-Bold="True" Font-Names="Verdana" Font-Overline="False" Font-Size="Small"></asp:RequiredFieldValidator>
    </td>
  </tr>
  <tr>
    <td valign="top" class="auto-style1" style="text-align: right"><b style="color: rgb(0, 0, 0); font-family: verdana, arial, helvetica, sans-serif; font-size: small; font-style: normal; font-variant: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255);">Description:</b></td>
    <td>
      <asp:TextBox cssClass="AdminPageText" ID="newComment" Runat="server" Width="400px" Height="100px" TextMode="MultiLine"/>
    </td>
  </tr>
  
 
  <tr>
    <td valign="top" class="auto-style1" style="text-align: right" colspan="2">
<asp:Button ID="createRating" CssClass="Button"
  Runat="server" Text="Add rating" OnClick="createRating_Click" /></td>
  </tr>
  
 
</table>
